Search backward in a module?

Hi,

I was wondering if it is possible to enter a module at a certain object, and then search to the parent object(which presumably is a header) to print out the header text.

For example, my Header would read like this:

Testing Instructions
...
...
...
...
For this test, you must...
If I open this module for reading, then search for "For this test, you must", go to the object, then go up the tree in order to obtain the parent, which should be "Testing Instructions".

I am also thinking about printing out links that appear in a header section using a similar approach.

Is this feasible?

Thank you for your time.
Gedinfo - Tue Apr 03 14:20:06 EDT 2012

Re: Search backward in a module?
llandale - Tue Apr 03 16:55:32 EDT 2012

  • Object oCurr = current
  • Object oParent = parent(oCurr)
  • print identifier(oParent) "\tis parent of:\t" identifier(oCurr) "\n"

Re: Search backward in a module?
Gedinfo - Tue Apr 03 17:16:25 EDT 2012

Thank you, Louie